gtk: Add GtkEventControllerScroll
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 15 Sep 2017 11:22:57 +0000 (13:22 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 19 Sep 2017 16:39:03 +0000 (18:39 +0200)
commitc3fbd589165979ad90ccf706173d14795398132a
tree656a0435edb805373419d935841dd15ce693d175
parent2985bf33137eef8f6c0105e682a373b363983661
gtk: Add GtkEventControllerScroll

This is a GtkEventController implementation to handle mouse
scrolling. It handles both smooth and discrete events and
offers a way for callers to tell their preference too, so
smooth events shall be accumulated and coalesced on request.

On capable devices, it can also emit ::scroll-begin and
::scroll-end enclosing all ::scroll events for a scroll
operation.

It also has builtin kinetic scrolling capabilities, reporting
the initial velocity for both axes after ::scroll-end if
requested.
gtk/gtk.h
gtk/gtkeventcontrollerscroll.c [new file with mode: 0644]
gtk/gtkeventcontrollerscroll.h [new file with mode: 0644]
gtk/meson.build